package com.weng.bigdata.micro.service.warehouse.adapter.fallback;

import com.weng.bigdata.micro.service.common.Constants;
import com.weng.bigdata.micro.service.warehouse.adapter.feign.WarehouseQueryFeignService;
import com.weng.bigdata.micro.service.warehouse.adapter.model.req.QueryBySqlReq;
import com.weng.bigdata.micro.service.warehouse.adapter.model.req.QueryByTableReq;
import com.weng.framework.core.model.ResponseData;
import org.springframework.stereotype.Component;

/**
 * @author wengzhonghui
 * @date 2019/3/23 16:12
 */
@Component
public class WarehouseQueryFallBack implements WarehouseQueryFeignService {


		@Override
		public ResponseData queryBySqlAndParam(QueryBySqlReq queryReq) {
				return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
		}

		@Override
		public ResponseData queryBySqlAndParamAsync(QueryBySqlReq queryReq) {
				return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
		}

		@Override
		public ResponseData queryByTable(QueryByTableReq queryReq) {
				return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
		}
}
